package com.tn.service.voice;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName VoiceProperties
 * @Description TODO
 * @Author Yezhongzhu
 * @Date 2022/3/9 14:00
 * @Version v1.0
 **/
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "voice")
public class VoiceProperties {
    @Value("${voice.tally.withinDistance}")
    private String withinDistance;

    @Value("${voice.tally.outOfDistance}")
    private String outOfDistance;

    @Value("${voice.tally.sendCall}")
    private String sendCall;

    @Value("${voice.tally.cancelCall}")
    private String cancelCall;

    @Value("${voice.tally.matched}")
    private String matched;
    @Value("${voice.tally.pausedTask}")
    private String pausedTask;

    @Value("${voice.tally.continueTask}")
    private String continueTask;

    @Value("${voice.tally.completeTask}")
    private String completeTask;

    @Value("${voice.warning.warnVehicleText}")
    private String warnVehicleText;

    @Value("${voice.expire}")
    private int expire;//持续时间/毫秒
    @Value("${voice.timeInterval}")
    private int timeInterval;//时间间隔/毫秒
}
